<?php
/**
*总监售后数据
*/
require("./include/init.php");
$address=$_REQUEST['address'];
//连接数据库
$redis = new Redis();
  //连接服务器
  $redis->connect("localhost");
  //授权
  $redis->auth("redis=pwd@2016");

$address=$_REQUEST['address'];
date_default_timezone_set('Asia/Shanghai');
switch ($address) {
  case '北京博瑞祥星汽车销售有限公司':
    $hash='Area_ServiceDirector_brxx';
    break;
  case '义乌市博奥汽车销售服务有限公司':
    $hash='Area_ServiceDirector_ywba';
    break;
  case '江苏天奥汽车销售服务有限公司':
    $hash='Area_ServiceDirector_jsta';
    break;
  case '广东粤奥汽车销售服务有限公司':
    $hash='Area_ServiceDirector_gdya';
    break;
  case '辽宁鑫迪汽车销售服务有限公司':
    $hash='Area_ServiceDirector_lnxd';
    break;
  case '成都新元素雅麓汽车销售服务有限公司':
    $hash='Area_ServiceDirector_cdyl';
    break;
  case '云南驰泰汽车销售服务有限公司':
    $hash='Area_ServiceDirector_ynct';
    break;
  case '宁夏奥立升汽车销售服务有限公司':
    $hash='Area_ServiceDirector_nxals';
    break;
  case '陕西奥诚汽车销售服务有限公司':
    $hash='Area_ServiceDirector_sxac';
    break;
}
$data=$redis->hmget($hash, array(
  'nowservice',
  'yesdservice',
  'onejk',
  'twojk',
  'threejk',
  'fourjk',
  'fivejk',
  'sixjk',
  'sevenjk',
  'firstjk',
  'secondjk',
  'thirdjk',
  'fourthjk',
  'firstmonth',
  'secondmonth',
  'thirdmonth',
  'fourthmonth',
  'loginnum',
  'nologinnum',
));





$nowservice=$data['nowservice'];
$yesdservice=$data['yesdservice'];
$onejk=$data['onejk'];
$twojk=$data['twojk'];
$threejk=$data['threejk'];
$fourjk=$data['fourjk'];
$fivejk=$data['fivejk'];
$sixjk=$data['sixjk'];
$sevenjk=$data['sevenjk'];
$firstjk=$data['firstjk'];
$secondjk=$data['secondjk'];
$thirdjk=$data['thirdjk'];
$fourthjk=$data['fourthjk'];
$firstmonth=$data['firstmonth'];
$secondmonth=$data['secondmonth'];
$thirdmonth=$data['thirdmonth'];
$fourthmonth=$data['fourthmonth'];
$loginnum=$data['loginnum'];
$nologinnum=$data['nologinnum'];






require(ROOT . 'view/iwocar5/Area_ServiceDirector.html');
 ?>
